<!-- Inicio Codigo feo para FB-->
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=151090545023142";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<script type="text/javascript">
	$(document).ready(function() {
            $('.fancybox-media').fancybox({
              openEffect	: 'elastic',
              closeEffect	: 'elastic',
		helpers : {
			media : {}
		},
              //padding     : 0,
              margin      : 50
            });
           $(".various").fancybox({
              closeClick  : false,
              openEffect	: 'elastic',
              closeEffect	: 'elastic',
              width		: '80%',
              closeBtn          : true,
              height		: '90%',
              type              :'iframe',
              'afterClose' : function() {
                parent.location.reload(true);
              },
              helpers   : {
                overlay : {closeClick: false}
              },
              'hideOnContentClick': true
            });
            $(".research").fancybox({
              closeClick  : true,
              openEffect	: 'elastic',
              closeEffect	: 'elastic',
              width		: '80%',
              height		: '90%',
              closeBtn          : true,
              //height		: '80%',
              type              :'iframe',              
              helpers   : {
                overlay : {closeClick: false}
              }
            });
	});        
</script>
<%# ruta_root = "http://pukara.ya.st"%>
<% ruta_root = "http://200.16.7.111"%>
<% ruta = ruta_root+'/cultural_heritage/cultural_heritages/'+@cultural_heritage_cultural_heritage.id.to_s %>
<% titulo= '<meta property="og:title" content="'+@cultural_heritage_cultural_heritage.title_name_code+'" >'%>
<%=  content_for(:title) {
  titulo.html_safe
  } %>
<% url= '<meta property="og:url" content="'+ruta+'">'%>
<%=  content_for(:url) {
  url.html_safe
} %>
<%=  content_for(:type) {
  '<meta property="og:type" content="article">'.html_safe
} %>
<%imagen = '<meta property="og:image" content="'+ruta_root+'/images/pukara_logo2.png">'%>
<%=  content_for(:image) {  
  imagen.html_safe
} %>
<%=  content_for(:site_map) {
  '<meta property="og:site_name" content="Pukara">'.html_safe
} %>
<!-- Fin Codigo feo para FB-->
<!-- Inicio codigo para el Google MAPS -->
<%= stylesheet_link_tag 'gmaps4rails' %>
<!-- Fin codigo para el Google MAPS -->
<h1>Mostrar Patrimonio Cultural Mueble (<%= @cultural_heritage_cultural_heritage.nationalRegistrationCode %>)</h1>
<% if flash[:notice] %>
    <div id="notice"><%= flash[:notice] %></div>
<% end %>
<!-- Inicio Bloque de la izquierda -->
<div class="shadow">
<fieldset class="column-left4">
  <fieldset id="agrupacion" >
      <legend>Datos Básicos </legend>
      <fieldset class="column-left3" >
        <%if !@cultural_heritage_cultural_heritage.nationalRegistrationCode.blank?%>
        <p>
          <b>Código de Registro Nacional:</b>
            <%= @cultural_heritage_cultural_heritage.nationalRegistrationCode %>
        </p>
        <%end%>
        <%if !@cultural_heritage_cultural_heritage.name.blank?%>
        <p>
          <b>Nombre:</b>
            <%= @cultural_heritage_cultural_heritage.name %>
        </p>
        <%end%>
        <%if !@cultural_heritage_cultural_heritage.description.blank?%>
        <p>
          <b>Descripción:</b>
            <%= @cultural_heritage_cultural_heritage.description %>
        </p>
        <%end%>
      </fieldset>
      <%if !@cultural_heritage_cultural_heritage.avatar_file_name.blank? %>
      <fieldset class="column-right3" id="agrupacion" >
        <legend>Foto:</legend>
        <div <%if @cultural_heritage_cultural_heritage.avatar_file_name.blank? %> style="display:none"<%end%>

        <p>
            <%cultural_heritage_cultural_heritage_avatar=@cultural_heritage_cultural_heritage%>                      
            <a href="<%=cultural_heritage_cultural_heritage_avatar.avatar.url%>" rel="lightbox[banners]" title="<%=cultural_heritage_cultural_heritage_avatar.name%>"><img class="thumb" src="<%=cultural_heritage_cultural_heritage_avatar.avatar.url%>"  width="100" height="100" /></a>               
        </p>

        </div>
      </fieldset>
      <%end%>
  </fieldset>
  <br />
  <% if !(@cultural_heritage_cultural_heritage.height.blank? and @cultural_heritage_cultural_heritage.long.blank? and @cultural_heritage_cultural_heritage.width.blank? and @cultural_heritage_cultural_heritage.weight.blank?) %>
  <fieldset id="agrupacion">
      <legend>Medidas</legend>
      <fieldset class="column-left">
        <%if !@cultural_heritage_cultural_heritage.height.blank?%>
        <p>
          <b>Alto:</b>
            <%= @cultural_heritage_cultural_heritage.height %> cm
        </p>
        <%end%>
        <%if !@cultural_heritage_cultural_heritage.long.blank?%>
        <p>
          <b>Largo:</b>
            <%= @cultural_heritage_cultural_heritage.long %> cm
        </p>
        <%end%>
      </fieldset>
      <fieldset class="column-right">
        <%if !@cultural_heritage_cultural_heritage.width.blank?%>
        <p>
          <b>Ancho:</b>
            <%= @cultural_heritage_cultural_heritage.width %> cm
        </p>
        <%end%>
        <%if !@cultural_heritage_cultural_heritage.weight.blank?%>
        <p>
          <b>Peso:</b>
            <%= @cultural_heritage_cultural_heritage.weight %> kg
        </p>
        <%end%>
      </fieldset>
  </fieldset>
  <br />
  <%end%>
  <% if !(@cultural_heritage_cultural_heritage.conservationalState.blank? and @cultural_heritage_cultural_heritage.integrityState.blank?) %>
  <fieldset id="agrupacion">
    <legend>Manejo de Estados</legend>
    <%if !@cultural_heritage_cultural_heritage.conservationalState.blank?%>
    <p>
      <b>Estado de Conservación:</b>
        <%= link_to @cultural_heritage_cultural_heritage.obj_conservational_state.name,{:controller=>"/cultural_heritage/conservational_states",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_conservational_state.id},:title => @cultural_heritage_cultural_heritage.obj_conservational_state.description%>
        <%#= @cultural_heritage_cultural_heritage.obj_conservational_state.name %>
    </p>
    <%end%>
    <%if !@cultural_heritage_cultural_heritage.integrityState.blank?%>
    <p>
      <b>Estado de Integridad:</b>
        <%= link_to @cultural_heritage_cultural_heritage.obj_integrity_state.name,{:controller=>"/cultural_heritage/integrity_states",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_integrity_state.id},:title => @cultural_heritage_cultural_heritage.obj_integrity_state.description%>
        <%#= @cultural_heritage_cultural_heritage.obj_integrity_state.name %>
    </p>
    <%end%>
  </fieldset>
  <br/>
  <%end%>
  <fieldset id="agrupacion">
    <legend>Agrupaciones</legend>
    <fieldset class="column-left">
      <%if !@cultural_heritage_cultural_heritage.group.blank?%>
      <p>
        <b>Grupo:</b>
          <%= link_to @cultural_heritage_cultural_heritage.obj_group.name,{:controller=>"/cultural_heritage/groups",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_group.id},:title => @cultural_heritage_cultural_heritage.obj_group.description%>
      </p>
      <%end%>
      <%if !@cultural_heritage_cultural_heritage.subGroup.blank?%>
      <p>
        <b>Subgrupo:</b>
          <%= link_to @cultural_heritage_cultural_heritage.obj_subGroup.name,{:controller=>"/cultural_heritage/sub_groups",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_subGroup.id},:title => @cultural_heritage_cultural_heritage.obj_subGroup.description%>
      </p>
      <%end%>
      <%if !@cultural_heritage_cultural_heritage.tipology.blank?%>
      <p>
        <b>Tipología:</b>
          <%= link_to @cultural_heritage_cultural_heritage.obj_tipology.name,{:controller=>"/cultural_heritage/tipologies",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_tipology.id},:title => @cultural_heritage_cultural_heritage.obj_tipology.description%>
      </p>
      <%end%>
      <%if !@cultural_heritage_cultural_heritage.typeCulturalInstitution.blank?%>
      <p>
        <b>Tipo de Institución Cultural:</b>
          <%= link_to @cultural_heritage_cultural_heritage.obj_typeCulturalInstitution.name,{:controller=>"/cultural_heritage/type_cultural_institutions",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_typeCulturalInstitution.id},:title => @cultural_heritage_cultural_heritage.obj_typeCulturalInstitution.description%>
          <%#= @cultural_heritage_cultural_heritage.obj_typeCulturalInstitution.name %>
      </p>
      <%end%>
    </fieldset>
    <fieldset class="column-right">
      <%if !@cultural_heritage_cultural_heritage.culturalInstitution.blank?%>
      <%if @cultural_heritage_cultural_heritage.typeCulturalInstitution == 1%>
      <p>
        <b>Institución Cultural:</b>
        <%= link_to @cultural_heritage_cultural_heritage.obj_culturalInstitution.name,{:controller=>"/cultural_heritage/cultural_institutions",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_culturalInstitution.id},:title => @cultural_heritage_cultural_heritage.obj_culturalInstitution.description%>
          <%#= @cultural_heritage_cultural_heritage.obj_culturalInstitution.name %>
      </p>
      <%end%>
      <%if @cultural_heritage_cultural_heritage.typeCulturalInstitution == 2%>
      <p>
        <b>Patrimonio Cultural:</b>
        <%= link_to @cultural_heritage_cultural_heritage.obj_cultural_heritage.name,{:controller=>"/cultural_heritage/cultural_heritage_properties",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_cultural_heritage.id},:title => @cultural_heritage_cultural_heritage.obj_cultural_heritage.description%>
          <%#= @cultural_heritage_cultural_heritage.obj_culturalInstitution.name %>
      </p>
      <%end%>
      <%end%>
      <%if !@cultural_heritage_cultural_heritage.period.blank?%>
      <p>
        <b>Periodo:</b>
          <%= link_to @cultural_heritage_cultural_heritage.obj_period.name,{:controller=>"/cultural_heritage/periods",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_period.id}%>
      </p>
      <%end%>
      <%if !@cultural_heritage_cultural_heritage.culture.blank?%>
      <p>
        <b>Cultura:</b>
          <%= link_to @cultural_heritage_cultural_heritage.obj_culture.name,{:controller=>"/cultural_heritage/cultures",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_culture.id},:title => @cultural_heritage_cultural_heritage.obj_culture.description%>
      </p>
      <%end%>
      <%if !@cultural_heritage_cultural_heritage.style.blank?%>
      <p>
        <b>Estilo:</b>
          <%= link_to @cultural_heritage_cultural_heritage.obj_style.name,{:controller=>"/cultural_heritage/styles",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_style.id},:title => @cultural_heritage_cultural_heritage.obj_style.description%>
      </p>
      <%end%>
    </fieldset>
  </fieldset>
  <br/>
  <% if !(@cultural_heritage_cultural_heritage.owner.blank? and @cultural_heritage_cultural_heritage.author.blank?) %>
  <fieldset id="agrupacion">
    <legend>Autores</legend>
    <%if !@cultural_heritage_cultural_heritage.owner.blank?%>
    <p>
      <b>Dueño:</b>
        <%= link_to @cultural_heritage_cultural_heritage.obj_owner.name,{:controller=>"/security/people",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_owner.id},:title => @cultural_heritage_cultural_heritage.obj_owner.email%>
    </p>
    <%end%>
    <%if !@cultural_heritage_cultural_heritage.author.blank?%>
    <p>
      <b>Autor:</b>
        <%= link_to @cultural_heritage_cultural_heritage.obj_author.name,{:controller=>"/security/people",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_author.id},:title => @cultural_heritage_cultural_heritage.obj_author.email%>
    </p>
    <%end%>
  </fieldset>
  <br/>
  <%end%>
  <% if !(@cultural_heritage_cultural_heritage.shape.blank? and @cultural_heritage_cultural_heritage.technique.blank? and @cultural_heritage_cultural_heritage.materials.blank?) %>
  <fieldset id="agrupacion">
     <legend>Datos Adicionales</legend>
     <fieldset class="column-left" >
    <%if !@cultural_heritage_cultural_heritage.materials.blank?%>
     <p>
      <b>Materiales:</b>
        <%= @cultural_heritage_cultural_heritage.materials %>
     </p>
     <%end%>
    </fieldset>
     <fieldset class="column-right" >
     <%if !@cultural_heritage_cultural_heritage.shape.blank?%>
     <p>
      <b>Forma:</b>
        <%= link_to @cultural_heritage_cultural_heritage.obj_shape.name,{:controller=>"/cultural_heritage/shapes",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_shape.id},:title => @cultural_heritage_cultural_heritage.obj_shape.description%>
    </p>
    <%end%>
    <%if !@cultural_heritage_cultural_heritage.technique.blank?%>
    <p>
      <b>Técnica:</b>
        <%= link_to @cultural_heritage_cultural_heritage.obj_technique.name,{:controller=>"/cultural_heritage/techniques",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_technique.id},:title => @cultural_heritage_cultural_heritage.obj_technique.description%>
    </p>
    <%end%>
    <%#if !@cultural_heritage_cultural_heritage.topic.blank?%>
    <%#*<p>%>
      <%#*<b>Topico:</b>%>
        <%#= link_to @cultural_heritage_cultural_heritage.obj_topic.name,{:controller=>"/cultural_heritage/topics",:action => 'show',:id => @cultural_heritage_cultural_heritage.obj_topic.id},:title => @cultural_heritage_cultural_heritage.obj_topic.description%>
    <%#*</p>%>
    <%#end%>
     </fieldset>
  </fieldset>
  <%end%>
</fieldset>
<!-- Fin Bloque de la izquierda -->
<!--Inicio Bloque de la derecha-->
<fieldset class="column-right4" width="100" >
<fieldset id="agrupacion" width="200">
  <legend>Compartir</legend>
  <div class="fb-like" data-href="<%=ruta%>" data-send="false" data-layout="box_count" data-width="50" data-show-faces="false"></div>
  <br/><br/>
  <% l_url = litle_url(ruta)%>  
  <a href="https://twitter.com/share" class="twitter-share-button" data-url="<%= l_url  %>" data-text="Sistema de Gestion de la Cultura Peruana Pukara" data-lang="es" data-hashtags="Pukara">Twittear</a>
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
  <br/><br/>
  <!-- Place this tag where you want the +1 button to render -->
  <g:plusone size="small"></g:plusone>
  <!-- Place this render call where appropriate -->
  <script type="text/javascript">
    window.___gcfg = {lang: 'es-419'};

    (function() {
      var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
      po.src = 'https://apis.google.com/js/plusone.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
  </script>
</fieldset>
  <fieldset  id="agrupacion">
  <legend>Asignaciones</legend>
<ul id="red" class="treeview-red" >
  <li class="open">
  <% if @father_node.id == @cultural_heritage_cultural_heritage.id %>
    <span><%=@father_node.name_code%></span>
  <%else%>
    <span><%= link_to @father_node.name_code,{:controller=>"/cultural_heritage/cultural_heritage_properties",:action => 'show',:id => @father_node.id},:title => @father_node.description%></span>
  <%end%>
    <%= render :partial=>"show_assign" %>
  </li>
</ul>
</fieldset>
  <fieldset  id="agrupacion">
<legend>Partes</legend>
  <ul id="red" class="treeview-red" >
    <li class="open">
    <% if @father_node_part.id == @cultural_heritage_cultural_heritage.id %>
      <span><%=  @father_node_part.name_code%></span>
    <%else%>
      <span><%= link_to @father_node_part.name_code,{:controller=>"/cultural_heritage/cultural_heritages",:action => 'show',:id => @father_node_part.id},:title => @father_node_part.description%></span>
    <%end%>
      <%= render :partial=>"show_part" %>
    </li>
  </ul>
  <% if (user_signed_in? && ([2,3].include?(current_user.role))) %>
    <%= link_to 'Partes',{:action=>"agrupador_partes", :controller=>"cultural_heritage/cultural_heritages", :id=>@cultural_heritage_cultural_heritage.id}%>
  <%end%>
</fieldset>
<fieldset  id="agrupacion">
  <legend>Galeria</legend>
  <%if @cultural_heritage_cultural_heritage_avatars.size > 0%>
  <div class="imageRow" id="galeria_mueble">
    <fieldset class="center">
        <%count = 0%>
        <% @cultural_heritage_cultural_heritage_avatars.each do |cultural_heritage_cultural_heritage_avatar| %>
          <%count = count +1%>
          <div class="single first" <%if count > 3%>style="display:none"<%end%>>
            <a href="<%=cultural_heritage_cultural_heritage_avatar.avatar.url%>" rel="lightbox[banners]" title="<%="["+cultural_heritage_cultural_heritage_avatar.title+"] "+cultural_heritage_cultural_heritage_avatar.description%>"><img class="thumb" src="<%=cultural_heritage_cultural_heritage_avatar.avatar.url%>"  width="75" height="75" /></a>
          </div>
        <%end%>
    </fieldset>
  </div>
  <br/>
  <%else%>
    Ninguna Imagen Encontrada<br/>
  <%end%>
  <% if (user_signed_in? && ([2,3].include?(current_user.role))) %>
    <%= link_to 'Galeria',{:action => 'gallery',:id => @cultural_heritage_cultural_heritage.id}, :class =>'various', :remote =>true%>
  <%end%>
</fieldset>
<fieldset  id="agrupacion">
  <legend>Videos</legend>
  <%if @cultural_heritage_cultural_heritage_videos.size > 0%>
  <div >
    
    <fieldset class="center">
        <%count = 0%>
        <% @cultural_heritage_cultural_heritage_videos.each do |cultural_heritage_cultural_heritage_video| %>
          <%count = count +1%>
         <div  <%if count > 3%>style="display:none"<%end%>>           
              <a class="fancybox-media" rel="group1" href="<%=cultural_heritage_cultural_heritage_video.video_url_embed%>" title="<%=cultural_heritage_cultural_heritage_video.video_description%>">
                <img src="<%=cultural_heritage_cultural_heritage_video.image_url%>" alt="" />
              </a>
          </div>
        <%end%>
    </fieldset>
  </div>
  <br/>
  <%else%>
    Ningun Video Encontrado<br/>
  <%end%>
  <% if (user_signed_in? && ([1,2,3,4].include?(current_user.role))) %>
    <%= link_to 'Videos',{:action => 'videos',:id => @cultural_heritage_cultural_heritage.id},:class =>'various'%>
  <%end%>
</fieldset>
  <fieldset  id="agrupacion">
  <legend>Modelos 3D</legend>
  <%if @cultural_heritage_cultural_heritage_models.size > 0%>
  <div >
    <ul >
    <fieldset class="center">
        <%count = 0%>
        <% @cultural_heritage_cultural_heritage_models.each do |cultural_heritage_cultural_heritage_model| %>
          <%count = count +1%>
         <div  <%if count > 3%>style="display:none"<%end%>>
           <li>
              <a class="fancybox-media" rel="group3" href="<%=cultural_heritage_cultural_heritage_model.model_url%>" title="<%=cultural_heritage_cultural_heritage_model.description%>">
                <%=  cultural_heritage_cultural_heritage_model.display_name%>
              </a>
           </li>
          </div>
        <%end%>
    </fieldset>
    </ul>
  </div>
  <br/>
  <%else%>
    Ningun Modelo 3D Encontrado<br/>
  <%end%>
  <% if (user_signed_in? && ([1,2,3,4].include?(current_user.role))) %>
    <%= link_to 'Modelos 3D',{:action => 'models',:id => @cultural_heritage_cultural_heritage.id},:class =>'various'%>
  <%end%>
</fieldset>
<fieldset  id="agrupacion">
  <legend>Investigaciones</legend>
  <%if @cultural_heritage_cultural_heritage_researches.size > 0%>
  <div >
    <ul >
    <fieldset class="center">
        <%count = 0%>
        <% @cultural_heritage_cultural_heritage_researches.each do |cultural_heritage_cultural_heritage_research| %>
          <%count = count +1%>
          <div  <%if count > 3%>style="display:none"<%end%>>            
            <li>
            <%= link_to cultural_heritage_cultural_heritage_research.display_name,{:action => 'show_research',:id => cultural_heritage_cultural_heritage_research.id},:class =>'research',:rel=>'group2'%>
            </li>
          </div>
        <%end%>
    </fieldset>
    </ul>
  </div>
  <br/>
  <%else%>
    Ninguna Investigacion Encontrada<br/>
  <%end%>
  <% if (user_signed_in? && ([1,2,3,4].include?(current_user.role))) %>
    <%= link_to 'Investigaciones',{:action => 'researches',:id => @cultural_heritage_cultural_heritage.id}, :class =>'various', :remote =>true%>
  <%end%>
</fieldset>
<% if (user_signed_in? && ([1,2,3,4].include?(current_user.role))) %>
<fieldset  id="agrupacion">
  <legend>Suscripciones</legend>
  <%= link_to image_tag("seguir.png", :border => 0, :title => 'Seguir'), :action=>"follow", :controller=>"cultural_heritage/cultural_heritages", :id=>@cultural_heritage_cultural_heritage.id %>
</fieldset>
<%end%>
</fieldset>
<!-- Fin Bloque de la derecha -->
<div id="lineaform"></div>
<!-- Google Maps inicia aqui -->
<%if @cultural_heritage_cultural_heritage.gmaps == true or @cultural_heritage_cultural_heritage.typeCulturalInstitution==1 %>
  <fieldset id="agrupacion">
  <legend>Ubicacion</legend>
  <%if @cultural_heritage_cultural_heritage.typeCulturalInstitution==1%>
    <%if @cultural_heritage_cultural_heritage.obj_culturalInstitution.gmaps == true%>    
      <%if @cultural_heritage_cultural_heritage.gmaps == true or @cultural_heritage_cultural_heritage.typeCulturalInstitution==1%>
        <%if @cultural_heritage_cultural_heritage.obj_culturalInstitution.gmaps == true%>
          <%= gmaps({
            "map_options" => { "type" => "HYBRID", "center_longitude" => 180, "zoom" => 7, "auto_adjust" => true},
            "markers"     => { "data" => @json,
                               "options" => {"list_container" => "markers_list" }
                              }
          })%>
        <ul id="markers_list">  </ul>
        <div id="lineaform"></div>
        <%end%>
      <%end%>
    <%end%>      
  <%end%>
  </fieldset>
  <div id="lineaform"></div>  
<%end%>
<!-- Facebook Inicia aqui -->
<div class="fb-comments" data-href="<%=ruta%>" data-num-posts="4" data-width="470"></div>
<div id="lineaform"></div>
</div>
<!-- Menu inferior-->
<br/>
<% if (user_signed_in? && ([2,4].include?(current_user.role))) %>
  <%= link_to 'Editar', edit_cultural_heritage_cultural_heritage_path(@cultural_heritage_cultural_heritage) %> |
<%end%>
<%= link_to 'Regresar', cultural_heritage_cultural_heritages_path %>
<% if (user_signed_in? && ([1,2,3,4].include?(current_user.role))) %>
<br></br>
<%= link_to 'Exportar a PDF',{:controller => '/report/cultural_heritage_report', :action => 'show_pdf',:id => @cultural_heritage_cultural_heritage.id}%>
<%end%>